<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Banner
 *
 * @ORM\Table(name="banner", options={"comment":"轮播图"})
 * @ORM\Entity()
 */
class Banner
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=45, nullable=true, options={"comment":"标题"})
     */
    private $title;

    /**
     * @var Area
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Area", inversedBy="id")
     * @ORM\JoinColumn(name="city_id", referencedColumnName="id")
     */
    private $city;

    /**
     * @var string
     *
     * @ORM\Column(name="image_path", type="string", length=255,  options={"comment"="图片路径"})
     */
    private $image_path;

    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="smallint",  nullable=true, options={"comment"="自定义类型 默认为1[URL]", "default"=1})
     */
    private $type;

    /**
     * @var string
     *
     * @ORM\Column(name="type_value", type="text", nullable=true, options={"comment"="自定义类型对应的跳转值, 当type为1的时候为URL"})
     */
    private $type_value;

    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", nullable=true, options={"default":1, "comment":"状态位: 0禁用 1正常"})
     */
    private $status;


    /**
     * @var integer
     *
     * @ORM\Column(name="banner_type", type="smallint", options={"default":1, "comment":"种类: 1 捕手banner 2：物业宝banner 3:便名服务  4广告位"})
     */
    private $banner_type;

    /**
     * @var int
     *
     * @ORM\Column(name="hit", type="integer", options={"comment"="点击次数", "default"=0})
     */
    private $hit;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

}
